package io.renren.modules.generator.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.renren.modules.generator.entity.CourseEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.sys.entity.SysUserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 *
 *
 * @author liangzai
 * @email liuyongxu@gmail.com
 * @date 2022-05-25 12:28:33
 */
@Mapper
public interface CourseDao extends BaseMapper<CourseEntity> {

    List<SysUserEntity> getAllTeacher();

    IPage<Map<String, Object>> studentCourse(@Param("page") Page<Map<String, Object>> page, @Param("params") Map<String, Object> params);

    IPage<Map<String, Object>> studentList(@Param("page") Page<Map<String, Object>> page, @Param("params") Map<String, Object> params);


}
